package 循环;

import java.util.Arrays;
import java.util.Scanner;

public class whileDemo {

	public static void main(String[] args) {
		 Scanner x=new Scanner(System.in);
		 System.out.println("请分别输入m值：");
	     while(x.hasNext()){
	         int m=x.nextInt();
	         System.out.println(m);
	         int[] number=new int[m];
	         for(int i=0;i<m;i++){
	             number[i]=x.nextInt();
	         }
	        // Arrays.sort(number);
	         System.out.print(Arrays.toString(number));
	     }
  }

}

